Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Time Base Functions / Working With Time Base Values


GetTimeBaseStartTime

You can determine the start time of a time base by calling the GetTimeBaseStartTime function.

pascal TimeValue GetTimeBaseStartTime (TimeBase tb, TimeScale s,
                                        TimeRecord *tr);
tb
Specifies the time base for this operation. Your application obtains this time base identifier from the NewTimeBase function (described on page 2-297).
s
Specifies the time scale in which to return the start time.
tr
Contains a pointer to a time structure that is to receive the start time. This is an optional parameter. If you do not want the time value represented in a time structure, set this parameter to nil.
DESCRIPTION
The GetTimeBaseStartTime returns a time value that contains the start time
from the specified time base in the specified time scale. The function returns this value even if you specify a time structure with the tr parameter.

ERROR CODES
None

SEE ALSO
You can set the start time of a time base by calling the SetTimeBaseStartTime function, which is described in the previous section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996